using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using DailyReport.Core.Bussines;
using DailyReport.Core.Bussines.IManagers;
using DailyReport.Core.Data.Dao;
using DailyReport.Core.Data.Dao.DaoFactory;
using DailyReport.Core.Data.Model;
using DailyReport.Core.Util;
using DailyReport.NHibernateDao.Data.Dao;
using log4net;

public partial class Pages_CreateUser : System.Web.UI.Page
{
    private UserManager um = new UserManager();
    static ILog log = LogManager.GetLogger("DailyPage");
    

    protected override void OnLoadComplete(EventArgs e)
    {
        ConnectionManager.Instance.Session.Close();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        ddlTeams.Items.Add("holas");
        TeamManager tm = new TeamManager();          
        /*TeamDao teamDao = new TeamDao();
        int number = teamDao.GetAll().Count;
        foreach(Team team in teamDao.GetAll())
        {            
            ddlTeams.Items.Add(team.Name);
        }
        ddlTeams.Items.Add("CUANTOS TEAMS HAY: " + number);
        */
    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        um.createUser(0, txtFirtName.Text, txtLastName.Text);     
    }
}
